package tax;

import java.util.Scanner;

public class MagicNubser {
    public static void main(String[] args) {
        System.out.println("请输入合法分数");
        Scanner scanner = new Scanner(System.in);
//        System.out.println(scanner.hasNextDouble());
        double v;
        while (scanner.hasNextDouble()){
            v =scanner.nextDouble();
            if (v>90){
                System.out.println("你的成绩是A");
            }else if (v>=70&&v<=90){
                System.out.println("你的成绩是B");
            }else  if (v>=60&&v<70){
                System.out.println("你的成绩是C");
            }else  if (v<60){
                System.out.println("不及格！补考");
            }
        }
    }
}
